package com.mega.ycy.mixin;

import net.minecraft.server.integrated.IntegratedServer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(IntegratedServer.class)
public class IntegratedServerMixin {
    @Inject(method = "func_71217_p", at = @At("HEAD"), cancellable = true)
    public void tick(CallbackInfo ci) {
        if (TWEAKER.isTimeStop)
            ci.cancel();
    }
}
